# Create your tasks here
from __future__ import absolute_import, unicode_literals
from celery import shared_task
import time, random


@shared_task
def add(x, y):
    time.sleep(3)
    return x + y


@shared_task
def mul(x, y):
    time.sleep(5)
    return x * y


@shared_task
def xsum(numbers):
    time.sleep(4)
    return sum(numbers)


@shared_task
def cheduler_task(name):
    print(name)
    print(time.strftime('%X'))